import {
    friend,
    move
} from "./msg"

export default class MsgManager{
    // public  -209655257 = friend.S2C_FriendListResp
    // public  -1410039937 = move.S2C_SyncPosition
    private id2Msg:Map<number,any> = new Map();

    private static  _instance = new MsgManager()
    private constructor(){
        this.registerMsg()
    }

    registerMsg() {
        this.id2Msg.set(-209,move.S2C_SyncPosition)
    }

    public static get instance(){
        return MsgManager._instance
    }

    getMsg(msgId:number){
        return this.id2Msg.get(msgId)
    }

}
